Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.8
|
Leadtools.Dicom.Scp.Command Namespace > DicomCommandFactory Class > CreateTypedCommand Method : CreateTypedCommand<T>(IDicomCommandClientSessionProxy,DicomDataSet) Method |
public virtual T CreateTypedCommand<T>( IDicomCommandClientSessionProxy sessionProxy, DicomDataSet requestDataSet ) where T: DicomCommand
'Declaration Public Overloads Overridable Function CreateTypedCommand(Of T As DicomCommand)( _ ByVal sessionProxy As IDicomCommandClientSessionProxy, _ ByVal requestDataSet As DicomDataSet _ ) As T
'Usage Dim instance As DicomCommandFactory Dim sessionProxy As IDicomCommandClientSessionProxy Dim requestDataSet As DicomDataSet Dim value As T value = instance.CreateTypedCommand(Of T)(sessionProxy, requestDataSet)
public: virtual T^ CreateTypedCommandgeneric<typename T> ( IDicomCommandClientSessionProxy^ sessionProxy, DicomDataSet^ requestDataSet ) where T: DicomCommand
This method will try to create a DicomCommand with the given generic type. It will also pass the provided sessionProxy and requestDataSet to the command constructor.
If the method fails to create the command it will throw an exception.